package com.mspbots.sync.model;

import com.fasterxml.jackson.databind.JsonNode;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * com.mspbots.sync.scheduled.tsheets.model.SheetsTime
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/7/25
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SheetsTime implements Serializable {

    private Long id;
    private Integer tenantId;
    private Long sheetId;
    private Long sheetUserId;
    private Long createdByUserId;

    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private LocalDate oneDay;
    private Boolean onTheClock;
    /**
     * The total number of seconds recorded for this timesheet.
     */
    private long duration;
    private LocalDateTime lastModified;
    private String notes;
    private LocalDateTime syncTime;
    private JsonNode extend;
}
